<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="global.jsp"%>
<%@ page import="com.chantel.tool.db.PageData"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String submit = ParamUtils.getParameter(request,"Submit");

  PageData pd = null;
  int ip = ParamUtils.getIntParameter(request, "p", 0);
  if (submit != null && submit.equals("查询")){
	  String search_txt = ParamUtils.getParameter(request,"search_txt");
	  pd = CaiGouShangPing.getChaXunShangPing(search_txt,ip,20);
  }
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品查询</title>
<link href="css/basic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" name="form1" method="post" action="product_search.jsp"><label>
商品名称： <input type="text" name="search_txt" /> </label> <label> <input
	type="submit" name="Submit" value="查询" /> </label></form>
<table width="200" border="1">
	<tr>
		<td>
		<div align="center">商品名称</div>
		</td>
		<td>
		<div align="center">型号</div>
		</td>
		<td>
		<div align="center">历史价格</div>
		</td>
	</tr>
   <%if(pd!=null){
       int li=0;
       for(int i=0;i<pd.data.size();i++){
          Map m=(Map)pd.data.get(i);
   %>
	<tr>
		<td><%=m.get("MingCheng")%></td>
		<td><%=m.get("GuiGe")%></td>
		<td><%=m.get("LiShiJiaGe")%></td>
	</tr>
<%    }
    }%>
</table>
</body>
</html>
